<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:param name="rootPath" />
<xsl:template match="/">
 <html>
  <head>
      <link rel="stylesheet" type="text/css" media="screen" href="{$rootPath}/style.css" />
  </head>
		<body>
			<div id="wrapper">
				<div id="header" class="container">
					<div id="logo">
						<h1><a href="#">Plain Clean </a></h1>
						<p>template design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a></p>
					</div>
				</div>
	<!-- end #header -->
				<div id="page" class="container">
					<div id="content">
						<xsl:apply-templates select="championship/club"/>
					</div>
				</div>
		<!-- end #content -->

				<div style="clear: both;"></div>
			</div>
	<!-- end #page -->
<div id="footer-content" class="container">
	<div id="footer-bg">
		<div id="column1">
			<h2>Welcome to my website</h2>
			<p>In posuere eleifend odio quisque semper augue mattis wisi maecenas ligula. Donec leo, vivamus fermentum nibh in augue praesent a lacus at urna congue rutrum. Quisque dictum integer nisl risus, sagittis convallis, rutrum id, congue, and nibh.</p>
		</div>
		<div id="column2">
			<h2>Etiam rhoncus volutpat</h2>
			<p>Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus consectetuer. Donec ipsum. Proin imperdiet est. Phasellus dapibus semper urna.</p>
		</div>
		<div id="column3">
			<h2>Recommended Links</h2>
			<ul>
				<li><a href="#">Consectetuer adipiscing elit</a></li>
				<li><a href="#">Metus aliquam pellentesque</a></li>
				<li><a href="#">Suspendisse iaculis mauris</a></li>
				<li><a href="#">Urnanet non molestie semper</a></li>
				<li><a href="#">Proin gravida orci porttitor</a></li>
			</ul>
		</div>
	</div>
</div>
<div id="footer">
	<p>Copyright (c) 2011 Sitename.com. All rights reserved. Design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p>
</div>
<!-- end #footer -->
</body>
</html>

</xsl:template>

<xsl:template match="club">
	<div class="post">
		<h2 class="title"><a><xsl:value-of select="name"/></a></h2>
		<div class="entry">
			<table>
				<tr>
					<td>Date de Fondation :</td>
					<td><xsl:value-of select="@establishment"/></td>
				</tr>
				<tr>
					<td>President :</td>
					<td><xsl:value-of select="president/lastName"/><xsl:text> </xsl:text><xsl:value-of select="president/firstName"/></td>
				</tr>
				<tr>
					<td>Entraineur :</td>
					<td><xsl:value-of select="coach/lastName"/><xsl:text> </xsl:text><xsl:value-of select="coach/firstName"/></td>
				</tr>
			</table>

			<xsl:apply-templates select="players"/>
		</div>
	</div>
</xsl:template>

<xsl:template match="players">
	<table>
		<thead>
			<tr>
				<th>Nom</th>
				<th>Prenom</th>
			</tr>
		</thead>
		<tbody>
			<xsl:for-each select="player">
				<tr>
					<td><xsl:value-of select="lastName"/></td>
					<td><xsl:value-of select="firstName"/></td>
				</tr>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>

</xsl:stylesheet>
